﻿@model IEnumerable<ClassSite.Models.Feeling>

@{
    ViewBag.Title = "Index";
}

<div class="container">
	<div class="row">
		<div class="col-md-8">
			<h2>@ViewBag.Message</h2>
			<p>状态更新</p>
			@using (Html.BeginForm("Create" , "feel" , FormMethod.Get))
			{
				<table class="table table-striped table-hover table-condensed table-responsive table-bordered">
					<tr>
						<td><textarea rows="3" class="form-control" placeholder="你在想什么呢？" ></textarea></td>
					</tr>
					<tr>
						<td><button type="submit" class="btn btn-success pull-right">@Html.ActionLink( "发布" , "Create" , "feel" )</button></td>
					</tr>
				</table>
			}

			<p>
			    @Html.ActionLink("Create New", "Create")
			</p>
			<table>
			    <tr>
				<th>
				    usersID
				</th>
				<th>
				    fContent
				</th>
				<th>
				    fcommendNo
				</th>
				<th></th>
			    </tr>

			@foreach (var item in Model) {
			    <tr>
				<td>
				    @Html.DisplayFor(modelItem => item.usersID)
				</td>
				<td>
				    @Html.DisplayFor(modelItem => item.fContent)
				</td>
				<td>
				    @Html.ActionLink("Edit", "Edit", new { id=item.feelingID }) |
				    @Html.ActionLink("Details", "Details", new { id=item.feelingID }) |
				    @Html.ActionLink("Delete", "Delete", new { id=item.feelingID })
				</td>
			    </tr>
			}

			</table>
		</div>
		<div class="col-md-4">

		</div>
	</div>
</div>

